package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.system.domain.PmsPurchaseRequisitions;
import org.apache.ibatis.annotations.Param;

/**
 * 采购申请单主Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-08
 */
public interface PmsPurchaseRequisitionsMapper
{
    /**
     * 查询采购申请单主
     *
     * @param prId 采购申请单主主键
     * @return 采购申请单主
     */
    public PmsPurchaseRequisitions selectPmsPurchaseRequisitionsByPrId(Long prId);

    /**
     * 查询采购申请单主列表
     *
     * @param pmsPurchaseRequisitions 采购申请单主
     * @return 采购申请单主集合
     */
    public Page<PmsPurchaseRequisitions> selectPmsPurchaseRequisitionsList(@Param("page")Page<PmsPurchaseRequisitions> page,@Param("bo") PmsPurchaseRequisitions pmsPurchaseRequisitions);


    public Page<PmsPurchaseRequisitions> selectPmsPurchaseRequisitionsByFinanceList(@Param("page")Page<PmsPurchaseRequisitions> page,@Param("bo") PmsPurchaseRequisitions pmsPurchaseRequisitions);
    public Page<PmsPurchaseRequisitions> selectPmsPurchaseRequisitionsByPurchaseList(@Param("page")Page<PmsPurchaseRequisitions> page,@Param("bo") PmsPurchaseRequisitions pmsPurchaseRequisitions);

    /**
     * 新增采购申请单主
     *
     * @param pmsPurchaseRequisitions 采购申请单主
     * @return 结果
     */
    public int insertPmsPurchaseRequisitions(PmsPurchaseRequisitions pmsPurchaseRequisitions);

    /**
     * 修改采购申请单主
     *
     * @param pmsPurchaseRequisitions 采购申请单主
     * @return 结果
     */
    public int updatePmsPurchaseRequisitions(PmsPurchaseRequisitions pmsPurchaseRequisitions);

    /**
     * 删除采购申请单主
     *
     * @param prId 采购申请单主主键
     * @return 结果
     */
    public int deletePmsPurchaseRequisitionsByPrId(Long prId);

    /**
     * 批量删除采购申请单主
     *
     * @param prIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePmsPurchaseRequisitionsByPrIds(Long[] prIds);
}
